package com.demo.chapter8.patter.stratery;

public class Validator {
	
	private final ValidationStratery stratery;
	
	public Validator(ValidationStratery stratery){
		this.stratery = stratery;
	}
	
	public boolean validate(String s){
		return stratery.execute(s);
	}

}
